﻿using UnityEngine;
using System.Collections;
using UnityEditor;

public static class SGTools
{
    public static Vector3 ParseV3(string strVec) 
    {
       string[] strVecs  =  strVec.Split(',');
       Vector3 retV3;
       retV3.x = float.Parse(strVecs[0]);
       retV3.y = float.Parse(strVecs[1]);
       retV3.z = float.Parse(strVecs[2]);
       return retV3;
    }

    public static string GetCurSceneName()
    {
      string[] pathArr =  EditorApplication.currentScene.Split('/');
      return pathArr[pathArr.Length-1].Replace(".unity","");
    }  


}
